﻿@inject ContentCateService contentCateService
<div class="layui-container cxuu-index-margin-top">
    <ul class="layui-nav" lay-filter="">
        <li class="layui-nav-item"><a asp-area="" asp-controller="Home" asp-action="Index" style="font-size:22px;">琪耀</a></li>

        @foreach (var item in await contentCateService.CateListByIdAsync(new int[] { 1, 2, 3, 6, 4, 8 }))
        {
            <li class="layui-nav-item">
                <a asp-area="Home" asp-controller="List" asp-action="Index" asp-route-id="@item.Id" class="nav-link">@item.Name</a>
            </li>
        }

        <li class="layui-nav-item">
            <a asp-area="Home" asp-controller="Video" asp-action="Index" class="nav-link">视频</a>
        </li>

        <li class="layui-layout-right layui-hide-xs" style="padding-top:10px;">
            <form asp-controller="Search" asp-action="Index" method="get">
                <div class="layui-col-md7">
                    <input type="text" name="keyword" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input">
                </div>
                <div class="layui-col-md5">
                    <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="submittitle"><i class="layui-icon">&#xe615;</i> Search </button>
                </div>
            </form>
        </li>

    </ul>
</div>